package com.neouton.crm.cm.mapper;

import com.neouton.crm.cm.entity.SalesCostMigrateBackVO;
import com.neouton.crm.cm.entity.SalesCostMigrateVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
* @author 巾凡
* @description 针对表【sales_cost_migrate_back(费用迁移备份表)】的数据库操作Mapper
* @createDate 2023-02-27 11:00:22
* @Entity com.neouton.crm.cm.entity.SalesCostMigrateBack
*/
@Mapper
public interface SalesCostMigrateBackMapper {

    int deleteByPrimaryKey(Long id);

    int insert(SalesCostMigrateBackVO record);

    int insertBackInfo(Integer id);

    int insertSelective(SalesCostMigrateBackVO record);

    SalesCostMigrateBackVO selectByPrimaryKey(Long id);

    SalesCostMigrateBackVO queryHistoryCostRecordByApprovalId(@Param("workId")Integer workId);

    int updateByPrimaryKeySelective(SalesCostMigrateBackVO record);

    int updateByPrimaryKey(SalesCostMigrateBackVO record);

}
